//package com.chanjiedata.changfour.view.treeopen;
//
//import android.os.Bundle;
//
//import androidx.appcompat.app.AppCompatActivity;
//import androidx.recyclerview.widget.LinearLayoutManager;
//import androidx.recyclerview.widget.RecyclerView;
//
//import com.chad.library.adapter.base.entity.node.BaseNode;
//import com.changjiedata.customview.R;
//
//import java.util.ArrayList;
//import java.util.List;
//
//public class TreeOpenActivity extends AppCompatActivity {
//
//    RecyclerView rv_recycle;
//
//    @Override
//    protected void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_tree_open);
//        rv_recycle = findViewById(R.id.rv_recycle);
//        NodeSectionAdapter adapter = new NodeSectionAdapter();
//        rv_recycle.setAdapter(adapter);
//        rv_recycle.setLayoutManager(new LinearLayoutManager(this));
//        adapter.addData(getEntity());
//    }
//
//    private List<BaseNode> getEntity() {
//        //总的 list，里面放的是 FirstNode
//        List<BaseNode> list = new ArrayList<>();
//        for (int i = 0; i < 8; i++) {
//
//            //SecondNode 的 list
//            List<BaseNode> secondNodeList = new ArrayList<>();
//            for (int n = 0; n <= 5; n++) {
//                SecondNode seNode = new SecondNode("Second Node " + n);
//                secondNodeList.add(seNode);
//            }
//
//            FirstNode entity = new FirstNode(secondNodeList, "First Node " + i);
//            list.add(entity);
//        }
//        return list;
//    }
//}
